Skip to content

Add helper functions for suggestion box#3222

Merged
koesie10 merged 1 commit intomainfrom
koesie10/suggest-box-helper-functions
Jan 16, 2024
Merged

Add helper functions for suggestion box#3222
koesie10 merged 1 commit intomainfrom
koesie10/suggest-box-helper-functions

Conversation

@koesie10
Copy link
Copy Markdown
Member

This adds some helper functions that will be used for a suggestion box in the future. There is one helper function for highlighting part of a text case-insensitively. Another helper function will try to find followup options based on a list of tokens.

The tests for these functions use access paths as input, but these functions are not intended to be specific to access paths. They can be used for any list of options/string.

Checklist

  • CHANGELOG.md has been updated to incorporate all user visible changes made by this pull request.
  • Issues have been created for any UI or other user-facing changes made by this pull request.
  • [Maintainers only] If this pull request makes user-facing changes that require documentation changes, open a corresponding docs pull request in the github/codeql repo and add the ready-for-doc-review label there.

This adds some helper functions that will be used for a suggestion box
in the future. There is one helper function for highlighting part of a
text case-insensitively. Another helper function will try to find
followup options based on a list of tokens.

The tests for these functions use access paths as input, but these
functions are not intended to be specific to access paths. They can be
used for any list of options/string.
@koesie10 koesie10 force-pushed the koesie10/suggest-box-helper-functions branch from 8e55529 to 7f730d2 Compare January 11, 2024 11:12
@koesie10 koesie10 marked this pull request as ready for review January 11, 2024 11:29
@koesie10 koesie10 requested a review from a team as a code owner January 11, 2024 11:29
@koesie10 koesie10 requested a review from a team January 15, 2024 15:14
Copy link
Copy Markdown
Contributor

@shati-patel shati-patel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good! Thanks for the comprehensive tests too (I admit I haven't scrutinised them all in detail 🔍 😅 )

@koesie10 koesie10 merged commit 5459028 into main Jan 16, 2024
@koesie10 koesie10 deleted the koesie10/suggest-box-helper-functions branch January 16, 2024 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants